# -*- coding: utf-8 -*-
"""
@Version : 
@Author  : ChenMZ
@Time    : 2025/09/22
@File    : define.py
@Desc    : 
@Modify  : 
"""
import enum


class CpuArchitecture(enum.Enum):
    x86 = 0
    MIPS = 1
    Alpha = 2
    PowerPC = 3
    ARM = 4
    ia64_Itanium = 5
    x64_AMD_or_Intel64 = 9
    ARM64 = 12


class CpuAvailability(enum.Enum):
    Other = 1
    Unknown = 2
    Running_FullPower = 3  # Running or Full Power
    Warning = 4
    In_Test = 5
    Not_Applicable = 6
    Power_Off = 7
    Off_Line = 8
    Off_Duty = 9
    Degraded = 10
    Not_Installed = 11
    Install_Error = 12
    Power_Save_Unknown = 13  # The device is known to be in a power save mode, but its exact status is unknown.
    Power_Save_LowPowerMode = 14  # The device is in a power save state but still functioning, and may exhibit degraded performance.
    Power_Save_Standby = 15  # The device is not functioning, but could be brought to full power quickly.
    Power_Cycle = 16
    Power_Save_Warning = 17  # The device is in a warning state, though also in a power save mode.
    Paused = 18  # The device is paused.
    Not_Ready = 19  # The device is not ready.
    Not_Configured = 20  # The device is not configured.
    Quiesced = 21  # The device is quiet.


class CpuStatusEnum(enum.Enum):
    CPU_Enabled = 1
    CPU_Disabled_by_User_via_BIOS_Setup = 2
    CPU_Disabled_by_BIOS_POST_Error = 3
    CPU_is_Idle = 4
    Other = 7


class CpuProcessorType(enum.Enum):
    Other = 1
    Unknown = 2
    Central_Processor = 3
    Math_Processor = 4
    DSP_Processor = 5
    Video_Processor = 6


